package com.wryyyyy.entity;

import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author wryyyyy
 * @since 2023-11-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("tb_dish")
public class Dish implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜品id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 菜品名称
     */
    private String dishName;

    /**
     * 价格
     */
    private Double price;

    /**
     * 全部图片路径
     */
    @JsonIgnore
    private String images;

    /**
     * 图片url集合
     */
    @TableField(exist = false)
    private List<String> urls;

    /**
     * 菜品简介
     */
    private String introduce;

    /**
     * 推荐做法
     */
    private String practice;

    /**
     * 材料
     */
    @TableField(exist = false)
    private List<Material> materials;

    /**
     * 标签
     */
    @TableField(exist = false)
    private List<Label> labels;

    @JsonIgnore
    @TableLogic
    private Boolean isDeleted;
}
